﻿using System.ComponentModel;
using System.Xml;
using System.Xml.Serialization;

namespace Bpmn.Xml;

/// <remarks/>
[Serializable]
[XmlType(Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", TypeName = "tDataStore")]
[XmlRoot("dataStore", Namespace = "http://www.omg.org/spec/BPMN/20100524/MODEL", IsNullable = false)]
public partial class DataStore : RootElement
{
    /// <remarks/>
    [XmlElement("dataState")]
    public DataState DataState { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("name")]
    public string Name { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("capacity", DataType = "integer")]
    public string Capacity { get; set; } = default!;

    /// <remarks/>
    [XmlAttribute("isUnlimited")]
    [DefaultValue(true)]
    public bool IsUnlimited { get; set; } = true;

    /// <remarks/>
    [XmlAttribute("itemSubjectRef")]
    public XmlQualifiedName ItemSubjectRef { get; set; } = default!;
}
